package dukeCE.InsightTracker;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

public class Tracker02Activity extends Activity {
    /** Called when the activity is first created. */
    
    
    private Button homeBt,newtopicBt,contributeBt,myCntBt,favoriteBt,calendarBt;
    ImageButton addtopicBt;
    
    
    
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_menu);
        
        
         homeBt=(Button)findViewById(R.id.home);
         newtopicBt=(Button)findViewById(R.id.newtopic);
        
         contributeBt=(Button)findViewById(R.id.contribute);
         myCntBt=(Button)findViewById(R.id.myCnt);
         favoriteBt=(Button)findViewById(R.id.favorite);
         calendarBt=(Button)findViewById(R.id.calendar);
 
         addtopicBt=(ImageButton)findViewById(R.id.addnew);

       
        
        addtopicBt.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent();
				intent.setClass(Tracker02Activity.this, postActivity.class);
			    startActivity(intent);
				
			}
		});
        
        
        homeBt.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent();
				intent.setClass(Tracker02Activity.this, CheckMessageActivity.class);
			    startActivity(intent);
				
			}
		});
        
        
        
        
        
        
        
    }
}